stay tuned…
update in 2017-07-25 comment donate module
2017-02-03
- 点击Hexo 官网,按要求配置
- 主题采用屠夫的Maupassant
- 在
themes\maupassant/_config.yml
中采用fancybox,disqus,self_search以及google_analytics - 注释掉rss ,
timeline
以及recent_comments
- self_search中jQuery-based Local Search Engine for Hexo的操作流程
2017-02-04
- ipad竖屏响应问题,更改
hexo\themes\maupassant\source\css\style.scss
文件中的12/* middle*/@media print, screen and (max-width: 48em)
将其中的 48em(48*16=768)
改为 47.9em
- 图片云床采用 七牛云 ,想注册的话,我有邀请码。Google一下,采用吴小龙同學 的方法
- 美凡提到图片瘦身功能,很赞
- 采用Page Analytics Chrome Extension进行访问分析
- Emoji
2017-02-05
Fix post-nav
bug, aim to put the previous post link on the left side and the next post on the right side.
Firstly check these files.
hexo\themes\maupassant\layout\index.jade
controls the format of your posts showing in your home page.hexo\themes\maupassant\layout\post.jade
determines the format of your post.hexo\themes\maupassant\source\css\style.scss
.
Through previous 3 files I find that there is something wrong with page.prev
and page.next
, for instance page.prev
points to the post that I post after the current post.
Find .post-nav
in file style.scss
and change the code in class post-nav
as follows:
|
|
2017-02-05
2017-02-21
- Want to add Hits beside the dates to the post listed in the home page.
2017-02-22 Change the theme to Next
- Add LeanCloud for click counter.
- Theme: Using Next instead of maupassant.
Configure
sidebar.swig
inG:\hexo\themes\next\layout\_macro
for removingsidebar
in the home page:Adding
if
statement beforesidebar-toggle
, do not forget the close tag123456789{% if is_post %}<div class="sidebar-toggle"><div class="sidebar-toggle-line-wrap"><span class="sidebar-toggle-line sidebar-toggle-line-first"></span><span class="sidebar-toggle-line sidebar-toggle-line-middle"></span><span class="sidebar-toggle-line sidebar-toggle-line-last"></span></div></div>{% endif %}Comment
sidebar-nav-overview
for not seeing theoverview
123{# <li class="sidebar-nav-overview" data-target="site-overview"> #}{# {{ __('sidebar.overview') }} #}{# </li> #}
2017-03-03 Add new page with Menu.XXX
cd g:hexo
hexo new page friends
Follow this instruction,
add friends: friends
in hexo\themes\next\languages\default.yml
menu:
home: Home
archives: Archives
categories: Categories
tags: Tags
about: About
friends: friends
search: Search
2017-3-09 Add emoji to Hexo
cd g:hexo
|
|
|
|
Open _config.yml
in g:hexo
, add these codes at the bottom
:smile:
U+2764
\xE2\x9D\xA4
:smile:
U+2764
\xE2\x9D\xA4
Reference:
Blog
2017-03-16 Add video to Next
Need url
123<video width="480" height="320" controls><source src=""></video>Only YouTube
1{% youtube ID %}Only YouTube
Right click YouTube video, choose “copy embed code…” and paste it to your post.- Need url
|
|
2017-03-20 Add center quote
balabalaba
balabalaab
2017-05-06 Markdown Table
From this post and this website
左对齐标题 | 右对齐标题 | 居中对齐标题 |
---|---|---|
短文本 | 中等文本 | 稍微长一点的文本 |
稍微长一点的文本 | 短文本 | 中等文本 |
-:
表示内容和标题栏居右对齐,:-
表示内容和标题栏居左对齐,:-:
表示内容和标题栏居中对齐。
2017-05-07 Markdown checkbox
(failed)first try
cd g:hexo
npm install markdown-it-checkbox --save
it appears123456789hexo-site@0.0.0 G:\hexo`-- markdown-it-checkbox@1.1.0`-- underscore@1.8.3npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})cd
to directory ofmarkdown-it
and typenpm install markdown-it-checkbox --save
it appears
checkbox does not appear
- [x] hello
- hello
(failed)second try
|
|
cd g:hexo
|
|
it appears
tpye npm i hexo-renderer-marked --save -g
add following code at the bottom of _config.yml
failed
(failed)third try
add "hexo-renderer-marked": "^0.3.0",
in the G:\hexo\package.json
cd g:hexo
npm i hexo-renderer-marked --save
failed
forth try
npm i hexo-renderer-marked -f
2017-05-09 add passwords for blogs
add "hexo-blog-encrypt": "^1.1.12",
in the G:\hexo\package.json
cd g:hexo
npm i hexo-blog-encrypt --save
it appears
try npm i hexo-blog-encrypt -f
|
|
2017-05-09 restart
https://xuanwo.org/2015/03/26/hexo-intor/
Given the fact that I have installed Node.js
and Git
in website.
So I open cmd
with win+r
and just type npm install -g hexo-cli
It appears
cd g:hexo
hexo init
it appears
2017-05-10 add local search
details in this website
open git bash
and type cd g:hexo
npm install hexo-generator-searchdb --save
|
|
2017-05-10 fix tag bug from h1 to h2
find tag.swig
in G:\hexo_old\hexo\themes\next\layout
replace following code
with
2017-05-12 note tag
Follow this website
Content (md partial supported)
default
primary
success
info
warning
danger
2017-05-22 input tag bugs
In the following code
<label>
must follow the close tag >
of input
closely, or it will appears bugs in content.
2017-05-25 space bug
2017-06-09 Template
radio
chackbox
template
table
|
|
Restart Hexo Blog
- open git bash
npm install -g hexo-cli
run
123hexo init g:hexocd g:hexonpm installrun
12git config --global user.name "yourname"git config --global user.email "youremail"do in
_config.yml
1234567# Sitetitle: SSQsubtitle:description:author: SSQlanguage: entimezone:
|
|
- run
npm install hexo-deployer-git --save
- run
hexo d
check my blog inhttps://ssq.github.io/
- in
_config.yml
change totheme: next
- copy file to
g:hexo/source
- run
npm install hexo-generator-searchdb --save
add in_config.yml
(hexo)12345search:path: search.xmlfield: postformat: htmllimit: 10000
add in _config.yml
(next)
2017-06-22 bug occurs in this circumstances
- use following code1{% keyword %}
2017-06-23 Cannot find second page of posts in my website
problem solved in this commit
2017-07-13 Export html file with markdownpreivew
Sublime Text 3 package MarkdownPreview can generate html file when typing ctrl + b
.It can also generate content when typing [TOC]
at the beginning of your md
file.
2017-07-17 Course and Certificate Template
Course can be found here
My certificate can be found here
Lecture slides can be found here
2017-07-17 Change Blog Anchor Text Hover Color to Blue
Find base.styl
in G:\hexo\themes\next\source\css\_variables
Change variables $link-color
to the following code
where blue
is #0684bd
2017-07-17 Change read-more to Blue
Find Mist.styl
in G:\hexo\themes\next\source\css\_variables
Change variable $read-more-color
to #0077b3
(blue)
2017-07-17 Change code-foreground to red
Find base.styl
in G:\hexo\themes\next\source\css\_variables
change variable $code-foreground
to #DE5233
(red) in line 151
2017-07-23 Add exam module
primary
2017-07-25 comment donate module
comment following code in hexo/themes/next
2017-08-14 Set fonts in a larger size
custom.styl